<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/struct_info.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>

<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
	
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/datepicker.js"></script>

<style>
#SWFUpload_0{
	margin-top: 70px;
    margin-left: -30px;
}
</style>
<script>


var add_Period = function(){
	var id = $("#id").val();
	var type = $("#type").val();
	var recruitment_result_id = $("#recruitment_result_id").val();
	var transactionsituation = $("#transactionsituation").val();
	var incomecompanytime = $("#incomecompanytime").val();
	var probationperiod = $("#probationperiod").val();
	var employeeperiod = $("#employeeperiod").val();
	var boccardnumber = $("#boccardnumber").val();
	if(type==""){
		infopad.err("请选择老师状态");
		return;
	}
	
	if(recruitment_result_id==""){
		infopad.err("请选择老师的姓名");
		return;
	}
	
	$.post("${contextPath}/recruitment/addrecruitmentpeople.json", {
		    "id":id,
		    "type":type,
		    "recruitment_result_id":recruitment_result_id,
		    "transactionsituation":transactionsituation,
            "incomecompanytime":incomecompanytime,
            "probationperiod":probationperiod,
            "employeeperiod":employeeperiod,
            "boccardnumber":boccardnumber
            
            
		}, function(ms) {
		   var msg = ms.msg;
		   if(msg!=null && msg=="1"){
			   infopad.msg("操作成功！");
			   window.location.href="${contextPath}/recruitment/recruitment_people_list.htm";
		   }else if(msg!=null && msg=="2"){
		       infopad.err("已经添加过，不能重复添加");
		   }
			
	});
}

</script>
</head>
<input type="hidden" id="id" value="<#if tgRecruitmentPeople??>${tgRecruitmentPeople.id}</#if>">
<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>组织架构</li>
			<li>&gt;</li>
			<li class="current">title</li>
		</ul>
	</div>

	<div id="container">
		<div id="title">添加招聘反馈情况</div>
		<table id="infotable">
		   <tr>
			    <th>人员情况</th>
				<td>
					<select id="type" >
	            		<option value="">请选择</option>
						<option value="1">正在培训</option>
						<option value="2">已入职</option>
						<option value="3">已通知去没有来</option>
						<option value="4">培训期间离开</option>
						<option value="5">入职后离开</option>
						<option value="6">已确定但未到报道时间的人数</option>
	            	</select>	
				</td>	
			</tr>
			<tr>
			<tr>
				<th>姓名:</th>
				<td>
					<select id="recruitment_result_id" >
					<option value="<#if tgRecruitmentPeople??>${tgRecruitmentPeople.recruitment_result_id}</#if>"><#if tgRecruitmentPeople??>${tgRecruitmentPeople.name}</#if></option>
	            		<#if list??>
	              			<#list list as ls>
	              				<option value="${ls.recruitment_result_id}">${ls.name}</option>
	              			</#list>
	            		</#if>
	            	</select>	
				</td>
			</tr>
			<tr>
			<th>异动:</th>
				<td><input id="transactionsituation" type="text" value="<#if tgRecruitmentPeople??>${tgRecruitmentPeople.transactionsituation}</#if>"  /></td>
			<tr>
			<tr>
		   <th>入司日期:</th>
				<td>
					<input type="text" id="incomecompanytime" value="<#if tgRecruitmentPeople??>${tgRecruitmentPeople.incomecompanytime}</#if>" rel="DATE::Y-m-d" value="" size="14" maxlength="15" readonly="readonly" class="DatePicker_Icon">
				</td>
			</tr>
			<tr>
				<th>试用期期限:</th>
				<td>
				    <textarea name="probationperiod" id="probationperiod" rows="5" cols="30" value="<#if tgRecruitmentPeople??>${tgRecruitmentPeople.probationperiod}</#if>"><#if tgRecruitmentPeople??>${tgRecruitmentPeople.probationperiod}</#if></textarea>
				</td>
			</tr>
				<tr>
				<th>试用期工资:</th>
				<td>
				    <textarea name="employeeperiod" id="employeeperiod" rows="5" cols="30" value="<#if tgRecruitmentPeople??>${tgRecruitmentPeople.employeeperiod}</#if>"><#if tgRecruitmentPeople??>${tgRecruitmentPeople.employeeperiod}</#if></textarea>
				</td>
			</tr>
			<tr>
				<th>中国银行卡卡号:</th>
				<td>
				    <textarea name="boccardnumber" id="boccardnumber" rows="5" cols="30" value="<#if tgRecruitmentPeople??>${tgRecruitmentPeople.boccardnumber}</#if>"><#if tgRecruitmentPeople??>${tgRecruitmentPeople.boccardnumber}</#if></textarea>
				</td>
			</tr>
		
	         
		  
		</table>
		
		<div id="controlbar">
			<input type="button" class="submit" onclick="add_Period()" value="  保  存  " />
		</div>
	</div>
	
</body>
</html>